package org.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author beikbei
 * @version 1.0
 * @description: TODO
 * @date 2024/5/11 14:40
 */

@RestController
public class MyController {
    @GetMapping("/reportform/find")
//    @Secured("ROLE_reportForm")
    public String findReportForm() {
        return "查询报表";
    }

    @GetMapping("/salary/find")
//    @PreAuthorize("hasAnyAuthority('/salary/find')")
    public String findSalary() {
        return "查询工资";
    }

    @GetMapping("/staff/find")
    public String findStaff() {
        return "查询员工";
    }
}
